import Vue from 'vue'
import Vuex from 'vuex'
import root from './root'
import modules from './modules'
import createRersistedstate from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  ...root,
  modules,
  plugins: [createRersistedstate()]

})
